package com.forenow.demo.demo3;

public class Swallow extends Bird{
    public void fly(){
        System.out.println("fly......");
    }
    public static void main(String[] args) {
        Swallow swallow=new Swallow();
        swallow.name="aa";
        swallow.color="yellow";
        swallow.eat();
        swallow.fly();
        Swallow swallow1=new Swallow();
        swallow1.name="bb";
        swallow1.color="red";
        swallow1.fly();
        swallow1.eat();
    }
}
